package com.tbj.service.impl;

import com.tbj.pojo.ThirdUserBo;
import com.tbj.service.IYFKService;
import com.tbj.util.BIPUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class YFKServiceImpl implements IYFKService {
    @Autowired
    private ThirdUserBo thirdUserBo;
    @Override
    public String getToken(String tokenBaseURL, String appKey, String appSecret) throws Exception {
        return BIPUtil.getAccessToken(tokenBaseURL, appKey, appSecret);
    }

    @Override
    public String uploadYfkJXPJ(String yfkjxpjURL, Map queryParams, Object bodyParams) throws Exception {
        return BIPUtil.getPostQueryParamAndBodyParam(yfkjxpjURL, queryParams, bodyParams);
    }


}
